SureCart\Models\Checkout A

Total Complexity 66
Dependencies 7
Dependents 8
Total lines 495
Lines of code 246
Logical lines of code 112
Comment lines 164
Methods 27
Properties 2

Methods 27

Method Rating Maintainability Complexity Lines of code
declineUpsell()
S
50 6 29
offerBump()
S
51 6 26
offerUpsell()
S
51 6 26
getHumanDiscountAttribute()
S
61 5 12
cancel()
S
52 4 25
manuallyPay()
S
52 4 25
getHumanDiscountWithDurationAttribute()
S
57 4 16
getLineItemsCountAttribute()
S
62 3 12
getConvertedTotalAmountAttribute()
S
71 3 6
getHasRecurringAttribute()
S
66 2 9
setWriteAttributes()
S
70 2 6
getBillingAddressDisplayAttribute()
S
71 2 6
getBumpDisplayAmountAttribute()
S
77 2 3
getSubtotalDisplayAmountAttribute()
S
77 2 3
getDiscountDisplayAmountAttribute()
S
77 2 3
getFullDisplayAmountAttribute()
S
77 2 3
__construct()
S
76 1 4
setRecommendedBumpsAttribute()
S
79 1 3
setLineItemsAttribute()
S
79 1 3
getIPAddress()
S
78 1 3
update()
S
77 1 4
create()
S
77 1 4
setCurrentUpsellAttribute()
S
79 1 3
setUpsellFunnelAttribute()
S
79 1 3
getIsInstallmentAttribute()
S
80 1 3
getTotalDisplayAmountAttribute()
S
79 1 3
getShippingAddressRequiredAttribute()
S
78 1 3